package com.blockmeta.bbs.immodule.corebean.Impl;

import android.content.Context;

import com.blockmeta.bbs.immodule.corebean.IMRepoFactory;
import com.blockmeta.bbs.immodule.greendao.repository.IChatMessageRepo;
import com.blockmeta.bbs.immodule.greendao.repository.ITodoRepo;
import com.blockmeta.bbs.immodule.greendao.repository.IUserRepo;

public class IMRepoContext {

    protected static IChatMessageRepo getChatMessageRepo(Context context){
        return IMRepoFactory.createChatMessageRepo(context);
    }

    protected static IUserRepo getIMUserRepo(Context context){
        return IMRepoFactory.createIMUserRepo(context);
    }

    protected static ITodoRepo getTodoRepo(Context context){
        return IMRepoFactory.createTodoRepo(context);
    }
}
